import {DialogOptions, DialogReactive} from "naive-ui/es/dialog/src/DialogProvider";
import styles from "./index.module.scss";

export default {
  open:(options:DialogOptions):DialogReactive=>{
    const defaultOptions = {
      ...{class: [styles.empty_dialog]},
      style: {width:"800px",height:"600px"},
      showIcon: false, closable: false,
    }
    return window.$dialog.create({...defaultOptions,...options});
  }
}